/* 
 *  <copyright file="PlayerInfo.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using System.Collections.Generic;
using System.Text;

using SobrietyEngine.Guids;
using SobrietyEngine.Components.Camera;
using SobrietyEngine.Components;
using SobrietyEngine.Components.Controller;

using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

using SobrietyEngine.User;
using SobrietyEngine.Input.Mapping;

namespace SobrietyEngine.PlayerData
{
    public class PlayerInfo : SobrietyEngine.PlayerData.IPlayerGameData
    {
        BaseMapper _gamepadSettings;
        public BaseMapper GamepadSettings { get { return _gamepadSettings; } set { _gamepadSettings = value; } }

        String playerName;
        public String PlayerName { get { return playerName; } set { playerName = value; } }

        int playerNum;
        public int PlayerNum { get { return playerNum; } set { playerNum = value; }}

        
        float timeTotal;

        public float TimeTotal
        {
            get { return timeTotal; }
            set { timeTotal = value; }
        }

        float timeLastLevel;

        public float TimeLastLevel
        {
            get { return timeLastLevel; }
            set { timeLastLevel = value; }
        }

        int wins;

        public int Wins
        {
            get { return wins; }
            set { wins = value; }
        }


        ICamera camera;

        public ICamera Camera
        {
            get { return camera; }
            set { camera = value; }
        }

        int score;

        public int Score
        {
            get { return score; }
            set { score = value; }
        }

        
        CGuid guid;
        public CGuid Guid { get { return guid; } set{}}

        ControllerCmp controller;
        public ControllerCmp Controller
        { get { return controller; } set { controller = value; } }

        private Boolean active = false;
        public Boolean Active
        {
            get { return active; }
            set { active = value; }
        }

        List<CGuid> playerActorGuids = new List<CGuid>();
        public List<CGuid> PlayerActorGuids
        {
            get { return playerActorGuids; }
            set { playerActorGuids = value; }
        }

        private Color playerColor = Color.White;

        public Color PlayerColor
        {
            get { return playerColor; }
            set { playerColor = value; }
        }


        public PlayerInfo()
        {
            //_gamepadSettings = new BaseInputToActions();
            guid = CGuid.Create("Player", this);
            score = 0;
        }
    }
}
